#include <iostream>
#include <unistd.h>
#include "thread.h"

class WorkThread: public Thread
{
public:
    void run();
};

void WorkThread::run()
{
    for(int i = 0; i < 5; i++)
    {
        std::cout << "WorkThread::run" << std::endl;
        sleep(1);
    }
}

int main()
{
    WorkThread work;
    work.start();
    work.join();
    return 0;
}
